This isn't a long-term solution; what we really want is for Alt-F2 to
just be an application search with a hack to detect shell commands,
but in the short term this allows us to run the magic 'lg' command
from the overview.
https://bugzilla.gnome.org/show_bug.cgi?id=595116
global.connect('panel-run-dialog', function(panel) {
// Make sure not more than one run dialog is shown.
- if (runDialog == null) {
- runDialog = new RunDialog.RunDialog();
- }
- runDialog.open();
+ getRunDialog().open();
});
overview = new Overview.Overview();
overview.hide();
return true;
+ } else if (symbol == Clutter.F2 && (event.get_state() & Clutter.ModifierType.MOD1_MASK)) {
+ getRunDialog().open();
}
}
return lookingGlass;
}
+function getRunDialog() {
+ if (runDialog == null) {
+ runDialog = new RunDialog.RunDialog();
+ }
+ return runDialog;
+}
+
function createAppLaunchContext() {
let screen = global.screen;
let display = screen.get_display();